package com.hccl.mongoEntities.action;


import DM.StateMachine;


public class JsAction extends Action{
    @Override
    public void run(StateMachine stateMachine) throws Exception{
        try {
            onEnter(stateMachine);

            //System.out.print(stateMachine.getJsEngine().eval("password"));
            System.out.print(stateMachine.getJsEngine().eval(actionParams.get(0), stateMachine.getBindings()));
            System.out.print(stateMachine.getJsEngine().eval("password"));
            stateMachine.updataParamInBindings();
            //stateMachine.getBindings().
            //System.out.print(stateMachine.getBindings().get("password"));
        }finally {
            onExit(stateMachine);
        }

    }

}
